#import "OmSettingSwitchCell.h"
@interface OmSettingSwitchCell ()
@property (weak, nonatomic) IBOutlet UILabel *titleLbl;
@property (weak, nonatomic) IBOutlet UIButton *switchBtn;
@end
@implementation OmSettingSwitchCell
- (void)awakeFromNib {
    [super awakeFromNib];
}
- (IBAction)switchChange:(id)sender {
    if (self.changeBlock) {
        self.changeBlock(self);
    }
}
- (void)setupTitle:(NSString *)title {
    self.titleLbl.text = title;
}
- (void)setupSwitchState:(BOOL)isYes {
    self.switchBtn.selected = isYes;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}
@end
